import java.util.Scanner;

public class Day_8_2_求最小公倍数 {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String str = sc.nextLine();
        String[] s = str.split(" ");
        int n1 = Integer.valueOf(s[0]);
        int n2 = Integer.valueOf(s[1]);

        if(n1 == n2){
            System.out.println(n1);
        }
        if(n1 % n2 == 0){
            System.out.println(n1);
        }else if(n2 % n1 == 0){
            System.out.println(n2);
        }
        int i = n1 > n2 ? n1 : n2;
        while (i % n1 != 0 || i % n2 != 0){
            i++;
        }
        System.out.println(i);
    }
}
